//
//  DrawCartoonPageContainer.h
//  drawacartoon
//
//  Created by Ji Hu on 12-8-13.
//  Copyright (c) 2012年 爱辅导. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Log.h"

#define Page_In_Content 3

@protocol DrawCartoonPageContainerDelegate <NSObject>

-(void)didAddPageToHead:(id)removedTailPage withAddedHeadPage:(id)headpage;
-(void)didAddPageToTail:(id)removedHeadPage withAddedTailPage:(id)tailPage;
-(void)didAddChild:(id)child withTag:(NSInteger)tag;

@end

@interface DrawCartoonPageContainer : UIView
{
    NSInteger headViewTag;
    NSInteger tailViewTag;
    
    Class _validateChildClass;
    
    CGPoint lastScrollTouch;
}

@property (nonatomic,retain) id<DrawCartoonPageContainerDelegate> delegate;

-(id)initWithChildClass:(Class)childclass withFrame:(CGRect)frame;

-(void)showNextPage;
-(void)showLastPage;

//locate page
-(NSInteger)getCurrentViewTag;

@end
